package com.sdy.healthcode.biz.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(value = "医生简单信息")
public class DoctorDetailDTO {
    @ApiModelProperty(value = "ID")
    private Integer doctorId;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "科室")
    private String dept;

    @ApiModelProperty(value = "日期")
    private String date;

    @ApiModelProperty(value = "星期")
    private String weekStr;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "排班状态 1-可预约 2-已约满")
    private Integer scheduleState;

    @ApiModelProperty(value = "医生状态 1、可预约 2、长期停诊 3、停诊不显示 4、临时停诊")
    private Integer suspendService;

    @ApiModelProperty(value = "替诊医生")
    private DoctorRep doctorRep;

    @ApiModelProperty(value = "出诊价格")
    private BigDecimal price;

    private List<ScheduleDay> scheduleDays;

    @Data
    @Accessors(chain = true)
    public static class ScheduleDay {
        private String weekDay;
        private String dayStr;
        private String visitTime;

        @ApiModelProperty(value = "剩余号数")
        private Integer rest;

        @ApiModelProperty(value = "排班ID")
        private Integer expertsScheduleDailyId;
    }
    @Data
    @Accessors(chain = true)
    public static class DoctorRep {
        @ApiModelProperty(value = "ID")
        private Integer doctorId;

        @ApiModelProperty(value = "姓名")
        private String name;

        @ApiModelProperty(value = "头像")
        private String avatar;

        @ApiModelProperty(value = "科室")
        private String dept;

        @ApiModelProperty(value = "简介")
        private String introduction;

        @ApiModelProperty(value = "替诊医生出诊价格")
        private BigDecimal repPrice;
    }
}
